// 按需导出
import request from '@/utils/request'

// 注册
// 返回值是 Promise 对象
export const register = data => request.post('/user/register', data)

// 登录
export const login = data => request.post('/user/login', data)

// 获取用户信息
export const current = params => request.get('/user/currentUser', { params })
